﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Kaiser.Cubic.Base
{
    public abstract class AreaRegistrationBase : AreaRegistration
    {
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
             this.AreaName + "_default",
             this.AreaName.ToLower() + "/{controller}/{action}.html/{id}",
             new { action = "Index", id = UrlParameter.Optional }
             );

            context.MapRoute(
            null,
                "", // 带有参数的 URL
                new { Area = "China", controller = "Home", action = "Index" }
               
            );
        }
    }
}